class FilePattern
  def initialize(pattern)
    @pattern = pattern
  end

  def matches(file)
    file.matches(@pattern)
  end
end